package cn.tsvtc.shop.service.impl;


import cn.tsvtc.shop.mapper.ProductMapper;
import cn.tsvtc.shop.pojo.Product;
import cn.tsvtc.shop.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * @author: Athena
 * @date: 2020/11/2 18:52
 * @description:
 */
@Service
public class ProductServiceImpl implements ProductService {



    private ProductMapper productMapper;

    @Autowired
    public ProductServiceImpl(ProductMapper productMapper){
        this.productMapper=productMapper;

    }



    /**
     * 获取全部banner信息
     *
     * @return
     */
    @Override
    public List<Product> findAll() {
        List<Product> productList = productMapper.findAll();
        return productList;
    }
}
